"""DRF_test URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path,include
from rest_framework.documentation import include_docs_urls

urlpatterns = [
    path('admin/', admin.site.urls),
    path('docs/', include_docs_urls(title="我的API文档")),   # pip install coreapi 自动生成接口文档
    path('', include('apps.drf_test_0Django原始restful.urls')),
    path('v1/', include('apps.drf_test_1魅力展示.urls')),
    path('v2/', include('apps.drf_test_3重写Django原始restful.urls')),
    path('v3/', include('apps.drf_test_4_listView.urls')),
    path('v4/', include('apps.drf_test_5_二级视图.urls')),
    path('v5/', include('apps.drf_test_6_mixins二级视图.urls')),
    path('v6/', include('apps.drf_test_7_三级视图.urls')),
    path('v7/', include('apps.drf_test_8_ModelViewSet视图.urls')),
]
